<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script type="text/javascript">
	//构造函数
		function Person(){
			this.name = "小明",
			this.age = 18,
			this.sex = "男",
			this.speak = "你真的好漂亮啊"
		}
		var Per1 = new Person();
		alert(Per1.name+"今年"+Per1.age+"岁，性别"+Per1.sex+",有一个男朋友，男朋友总会说："+Per1.speak)
	</script>
	<body>
	</body>
</html>
